<?php
namespace BaseExt;

require_once 'Baidu/AipOcr.php';
/**
 * PicUpload Class
 */

const APP_ID = '10902399';
const API_KEY = 'StsOE3CxujEp6AeMp9sO6WNm';
const SECRET_KEY = 'xI4zz20G8gDfBzdl5HFXlZnrd4GigkBl';


class OCR {
    // 你的 APPID AK SK

    public function init()
    {
        $client = new \AipOcr(APP_ID, API_KEY, SECRET_KEY);
        return $client;
    }

}
